//
//  MPlusBaseViewController.h
//  medicineplus
//
//  Created by gufei on 15-4-14.
//  Copyright (c) 2015年 chn_ruby@126.cn. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MPlusTabBarController.h"
#import "ViewPagerController.h"
#import "MBProgressHUD.h"

@interface MPlusBaseViewController : ViewPagerController {
//    MPlusTabBarController *aTabBarController;
    UIView *contentView;
    UIView *loadingView;
    UIView *loadFailView;
    UIView *emptyView;
    MBProgressHUD *HUD;
}

- (UIView *)aInitContentView;

- (void)setNavigationTitle:(NSString *)title;
- (void)setNavigationTitleView:(NSString *)title setCGRect:(CGRect)rectMake;
- (void)setNavigationLeft:(NSString *)title;
- (void)setNavigationRight:(NSString *)title;

- (void)setTabBarResource:(NSString *)title setImage:(NSString *)image setSelectedImage:(NSString *)selectedImage;

// 显示正在加载视图
- (void)showLoadingView;
- (void)showLoadingView:(NSString *)message;

// 显示加载失败视图
- (void)showLoadFailView;
- (void)showLoadFailView:(NSString *)message;

// 显示空视图
- (void)showEmptyView;
- (void)showEmptyView:(NSString *)message;
- (void)showEmptyView:(NSString *)message emptyIcon:(NSString *)icon;

// 重新加载视图
- (void)onReloadContent;

// 显示内容视图
- (void)showContentView;

// 显示toast
- (void)showToast:(NSString *) message;

// 显示loading dialog
- (void)showLoadingDialog;
- (void)showLoadingDialog:(NSString *) msg;
// 隐藏loading dialog
- (void)hideLoadingDialog;

// 显示弹出框Alert Dialog
- (void)showAlertDialog:(NSString *) message;
- (void)showAlertDialog:(NSString *) message confirm:(NSString *) confirm cancel:(NSString *) cancel;
- (void)showAlertDialog:(NSString *) title message:(NSString *) msg confirm:(NSString *) confirm cancel:(NSString *) cancel;
@end
